from django.urls import path, re_path
from . import views
from rest_framework_jwt.views import obtain_jwt_token

app_name = 'users'

urlpatterns = [
    path('login/', obtain_jwt_token, name='authorizations'),
    re_path(r'sms/(?P<mobile>1[3-9]\d{9})/', views.SmsAPiView.as_view(), name='sms'),
    path('mobile/<mobile>/', views.CheckMobileAPIView.as_view(), name='check_mobile'),
    path('register/', views.UserAPIView.as_view(), name='register'),
    path('orders/', views.UserOrderAPIView.as_view()),
    # path(r'', views.UserAPIView.as_view() ),
    # re_path(r'sms/(?P<mobile>1[3-9]\d{9})/', views.SMSCodeAPIView.as_view() ),
    # path("orders/", views.UserOrderAPIView.as_view()),
]

